<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var age = 17;
    console.log(age >= 20 ? "社会青年了" : "不是，还是小朋友");
    console.log(age >= 16 ? (age >= 20 ? "社会青年" : "刚刚成年") : "没有成年");
    var remark = age >= 16 ? (age >= 20 ? "社会青年" : "刚刚成年") : "没有成年"
</script>
</body>
</html>